﻿using System.Linq;
using System.Web;
using System.Web.Mvc;
using $myprojectname$.Domain.Abstract;

/// <summary>
/// Product Controller class.
/// </summary>
public class ProductController : Controller
{
	private IProductRepository repository;
    
    public ProductController(IProductRepository productRepository) {
         repository = productRepository;
    }

    public ActionResult List()
    {
        return View(repository.GetProducts());
    }
}
